﻿using System;
using BusinessPlatformTool.Enumerator;

namespace BusinessPlatformTool.BusinessObjectStructure
{
    internal interface IField
    {
        /// <summary>
        /// 字段类型
        /// </summary>
        DbType DbType { get; set; }
        /// <summary>
        /// 默认值
        /// </summary>
        string DefaultValue { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        string Description { get; set; }
        /// <summary>
        /// 允许为空
        /// </summary>
        bool IsNull { get; set; }
        /// <summary>
        /// 主键
        /// </summary>
        bool IsPrimaryKey { get; set; }
        /// <summary>
        /// 联合主键
        /// </summary>
        bool IsUnionKey { get; set; }
        /// <summary>
        /// 字段名
        /// </summary>
        string Name { get; set; }
        /// <summary>
        /// 属性名
        /// </summary>
        string PropertyName { get; set; }
        /// <summary>
        /// 属性类型
        /// </summary>
        string PropertyType { get; set; }
        /// <summary>
        /// 字段长度
        /// </summary>
        string PSize { get; set; }
        /// <summary>
        /// 字段精度
        /// </summary>
        string SSize { get; set; }
        /// <summary>
        /// 控件类型
        /// </summary>
        BOControlType.WinFormControlType ControlType { get; set; }
    }
}
